package com.bbc.action.test;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.bbc.base.BaseAction;
import com.bbc.entity.test.HelloWord;
import com.bbc.entity.test.Tb;
import com.bbc.service.test.HelloWordService;

public class HelloWorldAction extends BaseAction {
	private HelloWord hello;

	@Autowired
	private transient HelloWordService helloService;
	private List<HelloWord> hwList;
	private List<Tb> tbList;

	@Override
	public String execute() throws Exception {
		return SUCCESS;
	}

	public String helloword() throws Exception {
		System.out.println("0392094238");
		//helloService.insert(hello);
		//hwList = helloService.find();
		//tbList = helloService.findTb();
		return SUCCESS;
	}

	public HelloWord getHello() {
		return hello;
	}

	public void setHello(HelloWord hello) {
		this.hello = hello;
	}

	public List<HelloWord> getHwList() {
		return hwList;
	}

	public void setHwList(List<HelloWord> hwList) {
		this.hwList = hwList;
	}

	public List<Tb> getTbList() {
		return tbList;
	}

	public void setTbList(List<Tb> tbList) {
		this.tbList = tbList;
	}

}
